package com.briup.bms.dao;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.briup.bms.bean.Department;
import com.briup.bms.bean.Region;

@Mapper
public interface IDepartmentMapper {
	List<Department> finByRegion(Long regionId);
	List<Long> findDeptIdByRegionId(Long regionId);
	List<Department> findByCondition(
			@Param("name")String name,
			@Param("regionId")Integer regionId);
	int insert(Department dept);
	int updateById(Department dept);
	String selectByName(String department);
	int deleteDepartment(String department);

	List<Department> findByPageInfo();

    Department findDeptById(Integer deptId);

	void batchDelete(Set<Integer> departmentIds);
}
